package com.yangj.model;

public class AccompanyingPlay {
	private int id;
	private String name;
	private double level_;
	private int order_count;
	private String loc;
	private String acc_img;
	private String message;
	private int price;
	private String dan;
	private Game game_id;
	
	public AccompanyingPlay() {
		
	}
	
	public AccompanyingPlay(String name, String acc_img, Game game_id) {
		super();
		this.name = name;
		this.acc_img = acc_img;
		this.game_id = game_id;
	}

	public AccompanyingPlay(int id) {
		super();
		this.id = id;
	}

	public AccompanyingPlay(int id, String name, double level_, int order_count, String loc, String acc_img,
			String message, int price, String dan, Game game_id) {
		super();
		this.id = id;
		this.name = name;
		this.level_ = level_;
		this.order_count = order_count;
		this.loc = loc;
		this.acc_img = acc_img;
		this.message = message;
		this.price = price;
		this.dan = dan;
		this.game_id = game_id;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getLevel_() {
		return level_;
	}

	public void setLevel_(double level_) {
		this.level_ = level_;
	}

	public int getOrder_count() {
		return order_count;
	}

	public void setOrder_count(int order_count) {
		this.order_count = order_count;
	}

	public String getLoc() {
		return loc;
	}

	public void setLoc(String loc) {
		this.loc = loc;
	}

	public String getAcc_img() {
		return acc_img;
	}

	public void setAcc_img(String acc_img) {
		this.acc_img = acc_img;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public String getDan() {
		return dan;
	}

	public void setDan(String dan) {
		this.dan = dan;
	}

	public Game getGame_id() {
		return game_id;
	}

	public void setGame_id(Game game_id) {
		this.game_id = game_id;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AccompanyingPlay other = (AccompanyingPlay) obj;
		if (id != other.id)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "AccompanyingPlay [id=" + id + ", name=" + name + ", level_=" + level_ + ", order_count=" + order_count
				+ ", loc=" + loc + ", acc_img=" + acc_img + ", message=" + message + ", price=" + price + ", dan=" + dan
				+ ", game_id=" + game_id + "]";
	}
	
	
	
	

	

}
